﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RatingHelper.DAL
{
    public interface IUserRepository
    {

        void Add();
        void Delete();
        void Update();

        /// <summary>
        /// get user information by user's uname and pwd
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        UserInfo GetByAuthority(string userName,string password);


        IQueryable<UserInfo> GetAllUsers();


        /// <summary>
        /// save changes to db
        /// </summary>
        void Save();
    }
}
